package com.example.demo.service;

import com.example.demo.service.impl.TestFeignClientFallBackFactory;
import com.example.demo.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "eurekaclient",fallbackFactory = TestFeignClientFallBackFactory.class )
public interface TestFeignClient {

    @RequestMapping("/sendMsg")
    public ResponseResult sendMsg(@RequestParam String msg);
}

